<?php

class AccountController extends Zend_Controller_Action
{

    public function init()
	
    {
    		
		if(!(Zend_Auth::getInstance()->hasIdentity())){
						
					$this->_redirect('default/users/login');
				}		
        /* Initialize action controller here */
		
		
		//Setting up community navigation
		
		$config2 = new Zend_Config_Xml(APPLICATION_PATH . '/configs/membernav.xml', 'nav');
		$navigation2 = new Zend_Navigation($config2);
		$this->view->navigation($navigation2);
		
    }

    public function indexAction()
    {
				$this->view->layout()->setlayout('members');

		
    }


}

